package org.domain.sigepac.Entity;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorValue("destino")
public class MotivoDestino extends Motivo {

	private static final long serialVersionUID = 6229153908524858721L;


	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_grupo", referencedColumnName = "id", nullable = false)
	private GrupoDestino grupo;

	public GrupoDestino getGrupo() {
		return grupo;
	}
	public void setGrupo(GrupoDestino grupo) {
		this.grupo = grupo;
	}
}
